package org.zhadoop.stream.cql.semanticanalyzer.parser.visitor;

import java.util.Locale;

import org.antlr.v4.runtime.misc.NotNull;
import org.zhadoop.stream.cql.semanticanalyzer.parser.CQLParser.StreamNameContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.StreamAllColumnsContext;

public class StreamAllColumnsVisitor extends AbsCQLParserBaseVisitor<StreamAllColumnsContext>{

	private StreamAllColumnsContext context = null;
	
	public StreamAllColumnsVisitor() {
		context = new StreamAllColumnsContext();
	}
	
	@Override
	protected StreamAllColumnsContext defaultResult() {
		return context;
	}
	
	@Override
	public StreamAllColumnsContext visitStreamName(@NotNull StreamNameContext ctx) {
		context.setStreamName(ctx.getText().toLowerCase(Locale.US));
		return visitChildren(ctx);
	}
}
